﻿using System;
using TeamTasker.Utils;

namespace TeamTasker.Server.BusinessLogic.Format.Support
{
    public class EnumFormatter : ITypeFormatter
    {
        public string ValueToString(object value)
        {
            Validate.NotNull(value, "Null is not expected for enumeration value");
            return value.ToString();
        }
    }
}
